﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="OrderDetail.aspx.cs" Inherits="eStore.UI.OrderDetailPage" %>

<%@ Import Namespace="eStore.Helpers" %>
<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojopanel id="mp1" runat="server" artisteercssclass="art-Post" renderartisteerblockcontentdivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlOrderDetail" runat="server" CssClass="art-Post-inner panelwrapper admin estore estorecart">
        <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
        <div class="order-info">
        <fieldset>
        <legend>
         <asp:Literal ID="litOrderHeader" runat="server" />
        </legend>
            <div class="settingrow">
                <mp:SiteLabel ID="SiteLabel3" runat="server" CssClass="settinglabel" ConfigKey="OrderIdLabel"
                    ResourceFile="eStoreResources" />
                <asp:Label ID="lblOrderId" runat="server" />
            </div>
            <div class="settingrow">
                <mp:SiteLabel ID="SiteLabel2" runat="server" CssClass="settinglabel" ConfigKey="OrderDetailOrderDateLabel"
                    ResourceFile="eStoreResources" />
                <asp:Literal ID="litOrderDate" runat="server" />
            </div>
            <asp:Panel ID="pnlSubTotal" runat="server" CssClass="settingrow">
                <mp:SiteLabel ID="SiteLabel1" runat="server" CssClass="settinglabel" ConfigKey="OrderDetailSubTotalLabel"
                    ResourceFile="eStoreResources" />
                <asp:Literal ID="litSubTotal" runat="server" />
            </asp:Panel>
            <asp:Panel ID="pnlDiscount" runat="server" CssClass="settingrow">
                    <mp:SiteLabel ID="SiteLabel11" runat="server" CssClass="settinglabel" ConfigKey="CartDiscountTotalLabel" ResourceFile="eStoreResources" />
                    <asp:Literal ID="litDiscount" runat="server" />
                </asp:Panel>
            <asp:Panel ID="pnlShippingTotal" runat="server" CssClass="settingrow">
                <mp:SiteLabel ID="SiteLabel5" runat="server" CssClass="settinglabel" ConfigKey="OrderDetailShippingTotalLabel"
                    ResourceFile="eStoreResources" />
                <asp:Literal ID="litShippingTotal" runat="server" />
            </asp:Panel>
            <asp:Panel ID="pnlTaxTotal" runat="server" CssClass="settingrow">
                <mp:SiteLabel ID="SiteLabel6" runat="server" CssClass="settinglabel" ConfigKey="OrderDetailTaxTotalLabel"
                    ResourceFile="eStoreResources" />
                <asp:Literal ID="litTaxTotal" runat="server" />
            </asp:Panel>
            <asp:Panel ID="pnlOrderTotal" runat="server" CssClass="settingrow">
                <mp:SiteLabel ID="SiteLabel7" runat="server" CssClass="settinglabel" ConfigKey="OrderDetailOrderTotalLabel"
                    ResourceFile="eStoreResources" />
                <asp:Literal ID="litOrderTotal" runat="server" />
            </asp:Panel>
            </fieldset>
        </div>
   <asp:Panel ID="pnlCartItems" runat="server" CssClass="cart">
            <fieldset>
            <legend>
                <asp:Literal ID="litItemsHeader" runat="server" />
            </legend>
       
        <asp:Repeater ID="rptProducts" runat="server" >
                
                <HeaderTemplate>
                            <table class="cartgrid">
                            <tr class="header">
                                <th>
                                    <%# Resources.eStoreResources.CartItemsHeading%>
                                </th>
                                <th>
                                    <%# Resources.eStoreResources.CartPriceHeading%>
                                </th>
                                <th>
                                    <%# Resources.eStoreResources.CartQuantityHeading%>
                                </th>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="items">
                                <td><%# Eval("Name")%></td>
                                <td class="price"><%# StoreHelper.FormatPrice(Eval("ProductPrice").ToString(), currencyCulture) %></td>
                                <td class="quantity"><%# Eval("Quantity") %></td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class="altitems">
                                <td><%# Eval("Name")%></td>
                                <td class="price"><%# StoreHelper.FormatPrice(Eval("ProductPrice").ToString(), currencyCulture) %></td>
                                <td class="quantity"><%# Eval("Quantity") %></td>
                            </tr>
                        </AlternatingItemTemplate>
                        
                        <FooterTemplate>
                        </table>
                        </FooterTemplate>
                
            
    </asp:Repeater>
        </fieldset>
        <span class="txterror"><asp:Literal ID="litPaymentPending" runat="server" /></span>
        <mp:SiteLabel ID="lblMustSignInToDownload" runat="server" CssClass="txterror" ConfigKey="MustSigninToDownload" ResourceFile="eStoreResources" Visible="false" />
        <asp:Panel ID="pnlDownloadItems" runat="server" Visible="false" >
            <h2>
                <asp:Literal ID="litDownloadItemsHeader" runat="server" /></h2>
                
            <asp:Repeater ID="rptDownloadItems" runat="server">
                <ItemTemplate>
                    <div>
                        <a href='<%# Page.ResolveUrl(SiteRoot + "/eStore/ProductDownload.aspx?pageid=" + pageId + "&mid=" + moduleId + "&ticket=" + Eval("Guid")) %>'>
                            <%# Eval("ProductName") %>
                        </a>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </asp:Panel>
            </asp:Panel>

        <asp:Panel ID="pnlCustomer" runat="server" Visible="false" CssClass="customer">
            <asp:Panel ID="pnlBillingAddress" runat="server">
            <fieldset>
            <legend>
            <asp:Literal ID="litBillingHeader" runat="server" />
            </legend>

                                    <table>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerName" runat="server" ForControl="txtCustomerFirstName"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerNameLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingName" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerCompany" runat="server" ForControl="txtCustomerCompany"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerCompanyLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingCompany" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerAddressLine1" runat="server" ForControl="txtCustomerAddressLine1"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerAddressLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingAddress1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerEmail" runat="server" ForControl="txtCustomerEmail"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerEmailLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingEmail" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerTelephoneDay" runat="server" ForControl="txtCustomerTelephoneDay"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerTelephoneLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingTelephoneDay" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerCity" runat="server" ForControl="txtCustomerCity" CssClass="settinglabel"
                                ConfigKey="CartOrderInfoCustomerCityLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingCity" runat="server" />
                        </td>
                    </tr>
                    <tr style="display: none;">
                        <td>
                            <mp:SiteLabel ID="lblCustomerState" runat="server" ForControl="ddCustomerGeoZone"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerStateLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingState" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerPostalCode" runat="server" ForControl="txtCustomerPostalCode"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerPostalCodeLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingPostalCode" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <mp:SiteLabel ID="lblCustomerCountry" runat="server" ForControl="ddCustomerCountry"
                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerCountryLabel" ResourceFile="eStoreResources" />
                        </td>
                        <td>
                            <asp:Literal ID="litBillingCountry" runat="server" />
                        </td>
                    </tr>
                </table>
                </fieldset>
                </asp:Panel>
            </asp:Panel>
            <div class="button">
        <portal:mojoButton ID="btnFinish" runat="server" CssClass="checkoutlink"/>
        </div>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojopanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
